package com.snopy.designPattern.create.prototype;

import lombok.extern.slf4j.Slf4j;

/**
 * @author snopy
 * @version 1.0.0
 * @classname PrototypeDemo
 * @description
 * @email 77912204@qq.com
 * @date 2022/03/01 21:48
 */
@Slf4j
public class PrototypeDemo {
    public static void main(String[] args) {
        Paper paper1 = PaperCache.getPaper("1");
        log.info("paper:{}",paper1.toString());
        Paper paper2 = PaperCache.getPaper("2");
        log.info("paper:{}",paper2.toString());
        Paper paper3 = PaperCache.getPaper("3");
        log.info("paper:{}",paper3.toString());
    }
}
